#-*- coding: utf-8 -*-

from flask import Flask
from flask.ext import restful  
import json

app = Flask(__name__)
api = restful.Api(app)

class restservice(restful.Resource):
    def get(self):
        l = {'hello':'world'   , 'teacher':["tom" , "jack" , "jim"]}
        return l

class restserviceapi(restful.Resource):
    def get(self):
        return {'hello': 'world'}
        
        
api.add_resource(restservice, '/')
api.add_resource(restserviceapi, '/api')

if __name__ == '__main__':
    app.run(debug=True)